#!/usr/bin/env python
# -*- coding: UTF-8 -*-
'''
@Project : python的学习
@File    : 基础知识.py
@IDE     : PyCharm
@Author  : 春风十里
@Date    : 2023/6/13 11:10

'''
print("hello world")
# 接受用户输入的密码并打印
n = input("请输入密码：")  # 把输入内容赋值给n，让n接受一下
print(n)
# 数据类型转化
#  字符串转化整型
user = int('3042000780')
print(user)
#  浮点型转化整型
f = 20.1
ff = int(f)
print(ff)
#  字符串转换浮点型
f = "20.3"
ff = float(f)
print(ff)
# 整型转化浮点型
f = 20
ff = float(f)
print(ff)
# 浮点型转换字符串
f = 30.5
ff = str(f)
print(type(ff).__name__)
# 运算符
a = 30
a += 10
print(a)
a = 10
b = 20
c = 30
d = 40
n1 = a > b and a < c
n2 = not a < c
n3 = a > b or a < c
print(n1, n2, n3)
